\hypertarget{class_cmd_executer}{\section{Cmd\+Executer类 参考}
\label{class_cmd_executer}\index{Cmd\+Executer@{Cmd\+Executer}}
}


命令执行器类.  




{\ttfamily \#include $<$Cmd\+Executer.\+h$>$}

\subsection*{静态 Public 成员函数}
\begin{DoxyCompactItemize}
\item 
static sint32 \hyperlink{class_cmd_executer_ae3dad22384c08ea90fe4fe53d7becfd3}{execute} (std\+::string cmd, char $\ast$result, sint32 len)
\begin{DoxyCompactList}\small\item\em 执行命令并取得命令输出字符串. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
命令执行器类. 

\subsection{成员函数说明}
\hypertarget{class_cmd_executer_ae3dad22384c08ea90fe4fe53d7becfd3}{\index{Cmd\+Executer@{Cmd\+Executer}!execute@{execute}}
\index{execute@{execute}!Cmd\+Executer@{Cmd\+Executer}}
\subsubsection[{execute}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Cmd\+Executer\+::execute (
\begin{DoxyParamCaption}
\item[{std\+::string}]{cmd, }
\item[{char $\ast$}]{result, }
\item[{sint32}]{len}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{class_cmd_executer_ae3dad22384c08ea90fe4fe53d7becfd3}


执行命令并取得命令输出字符串. 


\begin{DoxyParams}{参数}
{\em cmd} & 命令字符串. \\
\hline
{\em result} & 命令输出缓存. \\
\hline
{\em len} & 命令输出缓存长度. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
sint32 成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R. 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_cmd_executer_8h}{Cmd\+Executer.\+h}\item 
libemb/src/Cmd\+Executer.\+cpp\end{DoxyCompactItemize}
